package com.xiaomengkuan.product.service;


import com.xiaomengkuan.common.util.R;
import com.xiaomengkuan.product.entity.pojo.Tag;
import com.xiaomengkuan.product.entity.vo.AdminTagGroupVo;

import java.util.List;
import java.util.Map;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-01-26 7:03 下午, File Encoding: utf8 --
 */
public interface TagService {
    /**
     * 根据类型（type）查询tag
     * @param type 类型
     * @return R
     */
    List<Tag> getByType(int type);

    List<AdminTagGroupVo> allTags();

    R getAllTag(Map<String, Object> requestBody);

    R createTag(Map<String, Object> requestBody);

    R modifyTag(Map<String, Object> requestBody);

    R removeTag(String id);
}
